<!DOCTYPE html>
<html lang="en" class="app">
<head>
    <meta charset="utf-8" />
    <title>无线公共支持综合网管理平台</title>
    <meta name="description" content="app, web app, responsive, admin dashboard, admin, flat, flat ui, ui kit, off screen nav" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <link rel="stylesheet" href="__ROOT__/Public/admin/css/bootstrap.css" type="text/css" />
    <link rel="stylesheet" href="__ROOT__/Public/admin/css/animate.css" type="text/css" />
    <link rel="stylesheet" href="__ROOT__/Public/admin/css/font-awesome.min.css" type="text/css" />
    <link rel="stylesheet" href="__ROOT__/Public/admin/css/icon.css" type="text/css" />
    <link rel="stylesheet" href="__ROOT__/Public/admin/css/font.css" type="text/css" />
    <link rel="stylesheet" href="__ROOT__/Public/admin/css/app.css" type="text/css" />
    <link rel="stylesheet" href="__ROOT__/Public/admin/js/datepicker/datepicker.css" type="text/css" />
    <link rel="stylesheet" href="__ROOT__/Public/admin/css/bianfeng.css" type="text/css" />
    <!--[if lt IE 9]>
    <script src="__ROOT__/Public/admin/js/ie/html5shiv.js"></script>
    <script src="__ROOT__/Public/admin/js/ie/respond.min.js"></script>
    <script src="__ROOT__/Public/admin/js/ie/excanvas.js"></script><![endif]-->
</head>
<body class="">
<section class="vbox">
    <include file="Public:header" />
    <section>
        <section class="hbox stretch">
            <aside class="bg-black aside-md hidden-print hidden-xs" id="nav">
                <include file="Public:left" />
            </aside>
            <section id="content">
                <section class="hbox stretch">
                    <aside>
                        <section class="vbox">
                            <header class="header bg-white b-b clearfix">
                                <div class="row m-t-sm">
                                    <div class="col-sm-4 m-b-xs">
                                        <div class="btn-group">
                                            <a href="{:U('Admin/Channel/NewChannel')}" class="btn btn-sm btn-primary"><i class="fa fa-plus"></i> 新建页面</a>
                                            <a href="#modal_delete" class="btn btn-sm btn-danger btn_delete" data-toggle="modal"><i class="fa fa-trash-o"></i> 批量删除</a>
                                        </div>
                                    </div>
                                    <div class="col-sm-8 m-b-xs">
                                        <form method="post" action="{:U('Admin/Channel/ChannelList', '', false, true)}" name="search_form">
                                            <div class="btn-group">
                                                <input type="text" class="input-sm form-control" size="30" placeholder="输入搜索内容" id="s_text_01" name="search" value="{$search}">
                                            </div>
                                            <div class="btn-group">
                                                <input class="input-sm datepicker-input form-control" size="20" type="text" data-date-format="yyyy-mm-dd" placeholder="开始时间" id="s_text_02" name="starttime" value="{$starttime}" />
                                            </div>
                                            <div class="btn-group">
                                                <input class="input-sm datepicker-input form-control" size="20" type="text" data-date-format="yyyy-mm-dd" placeholder="结束时间" id="s_text_03" name="endtime" value="{$endtime}" />
                                            </div>
                                            <button class="btn btn-sm btn-default" id="search" type="submit">搜索</button>
                                        </form>
                                    </div>

                                </div>
                            </header>
                            <section class="scrollable wrapper w-f">
                                <section class="panel panel-default">
                                    <div class="table-responsive">
                                        <table class="table table-striped m-b-none">
                                            <thead>
                                            <tr>
                                                <th width="20">
                                                    <label class="checkbox m-l m-t-none m-b-none i-checks"><input type="checkbox"><i></i></label>
                                                </th>
                                                <th>ID</th>
                                                <th>页面标识</th>
                                                <th>页面名称</th>
                                                <th>电脑模板</th>
                                                <th>手机模板</th>
                                                <th>发布时间</th>
                                                <th width="150">操作</th>
                                            </tr>
                                            </thead>
                                            <tbody id="ck_table">


                                            <foreach name='channel_list' item='vo'>
                                                <tr>
                                                    <td>
                                                        <label class="checkbox m-l m-t-none m-b-none i-checks"><input type="checkbox" name="ids[]" id="{$vo.id}"><i></i></label>
                                                    </td>
                                                    <td>{$vo.id}</td>
                                                    <td>
                                                        {$vo.sign}
                                                    </td>
                                                    <td>{$vo.name}<a href="{:U('Home/Page/Show', 'sign='.$vo['sign'], false, true)}" target="_blank" class="m-sm"><i class="fa text-info fa-external-link"></i></a></td>
                                                    <td>{$vo.pc_model}</td>
                                                    <td>{$vo.mo_model}</td>
                                                    <td>{$vo.createtime}</td>
                                                    <td>
                                                        
                                                        <a href="{:U('Channel/ChannelEdit', 'id='.$vo['id'], false, true)}" class="m-sm"><i class="fa text-success fa-pencil"></i></a>
                                                        <a href="#radio_delete" class="m-sm del" data-toggle="modal" data-id="{$vo.id}"><i class="fa text-danger fa-trash-o"></i></a>
                                                    </td>
                                                </tr>
                                            </foreach>
                                            </tbody>
                                        </table>
                                    </div>
                                </section>
                            </section>
                            <footer class="footer bg-white b-t">
                                <div class="row text-center-xs">
                                    <div class="col-md-12 col-sm-12 text-right text-center-xs text-center">
                                        <div class="pagination pagination-sm">
                                            {$page}
                                        </div>
                                    </div>
                                </div>
                            </footer>
                        </section>
                    </aside>
                </section>
                <a href="#" class="hide nav-off-screen-block" data-toggle="class:nav-off-screen,open" data-target="#nav,html"></a>
            </section>
        </section>
    </section>
</section>
<!-- 批量删除 -->
<form action="{:U('Admin/Channel/Delete', '', false, true)}" method="post">
    <input type="hidden" id="hidden_delete" name="hidden_delete" />

    <div class="modal fade" id="modal_delete">
        <div class="modal-dialog modal-sm">
            <div class="alert alert-danger alert-dismissible fade in" role="alert">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">×</span></button>
                <h4>确定要删除信息吗？</h4>

                <p>删除以后无法恢复数据</p>

                <p>
                    <button type="submit" class="btn btn-danger">删除</button>
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                </p>
            </div>
        </div>
    </div>
</form>
<!-- 单个删除 -->
<form action="{:U('Admin/Channel/Delete', '', false, true)}" method="post">
    <input type="hidden" id="radio_del" name="radio_del" />

    <div class="modal fade" id="radio_delete">
        <div class="modal-dialog modal-sm">
            <div class="alert alert-danger alert-dismissible fade in" role="alert">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">×</span></button>
                <h4>确定要删除当前信息吗？</h4>

                <p>删除以后无法恢复数据</p>

                <p>
                    <button type="submit" class="btn btn-danger">删除</button>
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                </p>
            </div>
        </div>
    </div>
</form>
<script src="__ROOT__/Public/admin/js/jquery.min.js"></script>
<!-- Bootstrap -->
<script src="__ROOT__/Public/admin/js/bootstrap.js"></script>
<!-- datepicker -->
<script src="__ROOT__/Public/admin/js/datepicker/bootstrap-datepicker.js"></script>
<!-- App -->
<script src="__ROOT__/Public/admin/js/bianfeng.js"></script>
<script src="__ROOT__/Public/admin/js/app.js"></script>
<script src="__ROOT__/Public/admin/js/slimscroll/jquery.slimscroll.min.js"></script>
<script src="__ROOT__/Public/admin/js/app.plugin.js"></script>
<!-- 单选审核的ajax地址 -->
<script>
    window.oPageConfig = {
        oUrl: 'some.php'
    }
</script>
</body>
</html>